    <div class="formbody">
        <div class="formtitle">
            <span>基本信息</span>
        </div>
        <form action="" method="post" accept-charset="utf-8">
            <ul class="forminfo">
                <li>
                    <label>角色名称</label>
                    <input type="text" class="dfinput" name="name" value="<?php echo empty($role['name']) ? '':$role['name']; ?>" placeholder="" />
                </li>
                <li>
                    <label>栏目</label>
                    <?php foreach ($menus as $k => $v): ?>
                        <ul>
                            <li>
                                <input type="checkbox" name="menus[]" value="<?php echo $v['id']; ?>" <?php echo ( !empty($role['menuIdList']) && in_array($v['id'],$role['menuIdList']) ) ? 'checked' : ''; ?>/>
                                <?php echo $v['html'].'['.$v['id'].']'.$v['title']; ?>
                            </li>
                        </ul>
                    <?php endforeach; ?>
                </li>
                <li>
                    <label>&nbsp;</label>
                    <input name="" type="submit" class="btn" value="确认保存"/>
                </li>
            </ul>
        </form>
    </div>

